package com.lgx.mobile.dao;

import java.util.Date;
import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mobile.entity.Topic;
import com.lgx.mobile.vo.TopicVO;

/**
 * 
 * @author xuyichen
 *
 */
public interface ITopicDao  {
	public Topic createTopic(Topic Topic) throws DataException;
	public Topic updateTopic(Topic Topic) throws DataException;
	public void deleteTopic(Topic Topic) throws DataException;
	public void deleteTopicById(long id) throws DataException;
	public Topic findTopicById(long id);
	public Topic checkTopicExists(long createUserId,Date createDate,long categoryId);
	public List<Topic> findTopicList();
	public List<Topic> findTopicListByCategoryId(long categoryId);
	public List<TopicVO> findHotTopicList(int num);
	public Pagination findTopicPaginationByCategoryId(long categoryId,Object[] params,Class<?> clazz,int pageSize,int pageNum);
}